# -*- coding:utf-8 -*-
import re
tv_html = open('tv.htm','r')
tv_str = tv_html.read()
title = re.findall('<title.*?\/title>',tv_str)
content = re.findall('<div id=\"episode_listing\".*?\/div>',tv_str,re.S)
print content

n = re.compile('w[a-z]*',re.IGNORECASE)
print n.findall('will match all words beginning with the letter w.')
